package ren.kane.asdppp.transaction.change.method;

import ren.kane.asdppp.method.MailMethod;
import ren.kane.asdppp.method.PaymentMethod;

/**
 * @author renrk(1275) on 2019-04-20 9:48 PM
 **/
public class ChangeMailTransaction extends ChangeMethodTransaction {

    private String address;

    public ChangeMailTransaction() {
    }

    public ChangeMailTransaction(int empId, String address) {
        super(empId);
        this.address = address;
    }

    @Override
    protected PaymentMethod getMethod() {
        return new MailMethod(address);
    }
}
